package router

import (
	"github.com/gin-gonic/gin"
	"goods_bff/controller/banners"
)

func InitBannerRouter(router *gin.Engine) {
	BannerRouter := router.Group("/v1/banners")
	{
		BannerRouter.GET("", banners.List)      // 轮播图列表页
		BannerRouter.DELETE("", banners.Delete) // 删除轮播图
		BannerRouter.POST("", banners.New)      //新建轮播图
		BannerRouter.PUT("", banners.Update)    //修改轮播图信息
	}
}
